package bob.project.inventory;

import java.awt.Graphics;

import bob.project.inventory.def.AmmoItemDef;
import bob.project.slick.GameState;


public class AmmoItem extends Item {
	
	public int forWeaponId;

	public AmmoItem(AmmoItemDef def)
	{
		super(def);
		forWeaponId = def.forWeaponId;
		type = TYPE_AMMO;
	}
	
	public AmmoItem(int X, int Y, int itemId)
	{
		super(X, Y, itemId);
		type = TYPE_AMMO;
	}

	public void showToolTip(Graphics g)
	{
		GameState.font_12.drawString(2, 2, name);
		GameState.font_12.drawString(2, 14, "count " + count);
	}
}
